package testdb.models;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "user")
public class User{

@Id
private long id;

private String firstname;

private String lastname;

public User(){}

public User(long id){
this.id=id;
}

public User(long id,String firstname,String lastname)
{
this.id=id;
this.firstname=firstname;
this.lastname =lastname;
}
  // Getter and setter methods
  public long getId() {
    return id;
  }

  public void setId(long value) {
    this.id = value;
  }

  public String getfirstname() {
    return this.firstname;
  }
  
  public void setfirstname(String value) {
    this.firstname= value;
  }
  
  public String getlastname() {
    return this.lastname;
  }

  public void setlastname(String value) {
    this.lastname= value;
  }

}
